﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
using System.Reflection;
using log4net;

namespace AnyOffice.general.vehicle.manage
{
    public partial class delete : ModulePage
    {

        private static ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
               
        protected void Page_Load(object sender, EventArgs e)
        {
            int vehicleId = (Request.QueryString["vehicle_id"] != null) ? int.Parse(Request.QueryString["vehicle_id"]) : 0;
            new VehicleDao().Delete(base.Conn, vehicleId);
            base.CloseConn();
            Response.Redirect("index1.aspx");
        }

 

    }
}
